let sest;
let photoArticleContent;

$(function() {
	sest = sessionStorage;
	photoArticleContent = $("#photo-article-content");
	articles();
});

/**
 * 请求文章内容
 */
let articles = function () {
//	alert(sest.getItem("articleNewsId"));
	$.ajax({
		type: "get",
		url: "a1",
		async: true,
		data: {newsId: sest.getItem("articleNewsId")},
		success: function(data) {
			console.info(data);
			contents(data);
		}
	});
}

/**
 * 加载文章内容
 */
let contents = function(data) {
	photoArticleContent.html(data.newsContent);
	$.each(data, function(i, j){
		$(".photo-article-"+i).text(j);
	});
}
